<!DOCTYPE html>
<html lang="en" xmlns:th="https://thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传和下载</title>
</head>
<body>
<h1>文件上传和下载</h1>
<a th:href="@{/file/testDown}">文件下载</a>
<form th:action="@{/file/testUp}" method="post" enctype="multipart/form-data">
    头像：<input type="file" name="photo"><br>
    <input type="submit">
</form>
</body>
</html>